.class public Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;
.super Ljava/lang/Object;
.source "OldSFtpFileSystem.java"

# interfaces
.implements Les/o80;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$a;,
        Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$SFTPFileWrapper;,
        Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$b;,
        Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;,
        Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;
    }
.end annotation


# static fields
.field private static d:Lcom/jcraft/jsch/JSch;

.field private static e:Z

.field private static f:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;",
            ">;>;"
        }
    .end annotation
.end field

.field private static g:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;


# instance fields
.field private a:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Lcom/estrongs/android/util/TypedMap;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private c:Lcom/estrongs/android/util/TypedMap;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Lcom/jcraft/jsch/JSch;

    invoke-direct {v0}, Lcom/jcraft/jsch/JSch;-><init>()V

    sput-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    const/4 v0, 0x0

    .line 2
    sput-boolean v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->e:Z

    .line 3
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    const/4 v0, 0x0

    .line 4
    sput-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->g:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a:Ljava/util/HashMap;

    .line 3
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b:Ljava/util/HashMap;

    .line 4
    new-instance v0, Lcom/estrongs/android/util/TypedMap;

    invoke-direct {v0}, Lcom/estrongs/android/util/TypedMap;-><init>()V

    iput-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->c:Lcom/estrongs/android/util/TypedMap;

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 4
    :try_start_0
    sget-object v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    monitor-enter v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    .line 5
    :try_start_1
    sget-object v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "@"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "@"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    if-nez v2, :cond_0

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 7
    sget-object v3, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "@"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, "@"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    :cond_0
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    :try_start_2
    const-string v1, "UTF-8"

    .line 9
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "sftp://"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "@"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "22"

    invoke-virtual {p4, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    const-string v4, ""

    goto :goto_0

    :cond_1
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, ":"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    :goto_0
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "/"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 10
    iget-object v4, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a:Ljava/util/HashMap;

    invoke-virtual {v4, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/android/util/TypedMap;

    if-eqz v3, :cond_2

    const-string v4, "encode"

    .line 11
    invoke-virtual {v3, v4, v1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 12
    :cond_2
    :goto_1
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    const/4 v5, 0x0

    if-gtz v4, :cond_4

    .line 13
    new-instance v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    invoke-direct {v2, v0}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;-><init>(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 14
    :try_start_3
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    invoke-static {p4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p4

    invoke-virtual {v0, p1, p3, p4}, Lcom/jcraft/jsch/JSch;->a(Ljava/lang/String;Ljava/lang/String;I)Lcom/jcraft/jsch/Session;

    move-result-object p1

    iput-object p1, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    .line 15
    new-instance p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$a;

    invoke-direct {p1, p2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$a;-><init>(Ljava/lang/String;)V

    .line 16
    iget-object p2, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    invoke-virtual {p2, p1}, Lcom/jcraft/jsch/Session;->a(Lcom/jcraft/jsch/UserInfo;)V

    .line 17
    iget-object p1, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    const/16 p2, 0x7530

    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/Session;->a(I)V

    .line 18
    iget-object p1, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    const-string p3, "sftp"

    invoke-virtual {p1, p3}, Lcom/jcraft/jsch/Session;->b(Ljava/lang/String;)Lcom/jcraft/jsch/Channel;

    move-result-object p1

    check-cast p1, Lcom/jcraft/jsch/ChannelSftp;

    iput-object p1, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    .line 19
    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/Channel;->a(I)V

    .line 20
    sget-object p1, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    aget-object p1, p1, v5

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_3

    const-string p1, "detectedEncoding"

    invoke-virtual {v3, p1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_3

    const-string p1, "detectedEncoding"

    .line 21
    invoke-virtual {v3, p1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 22
    :cond_3
    iget-object p1, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {p1, v1}, Lcom/jcraft/jsch/ChannelSftp;->i(Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    return-object v2

    :catch_0
    move-exception p1

    move-object v0, v2

    goto :goto_3

    .line 23
    :cond_4
    :try_start_4
    monitor-enter v2
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    .line 24
    :try_start_5
    invoke-virtual {v2, v5}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    .line 25
    :try_start_6
    monitor-exit v2
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    .line 26
    :try_start_7
    iget-object v6, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v6}, Lcom/jcraft/jsch/Channel;->j()Z

    move-result v6

    if-eqz v6, :cond_6

    .line 27
    iget-object p1, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {p1, v1}, Lcom/jcraft/jsch/ChannelSftp;->i(Ljava/lang/String;)V

    .line 28
    sget-object p1, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    aget-object p1, p1, v5

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_5

    const-string p1, "detectedEncoding"

    invoke-virtual {v3, p1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 29
    iget-object p1, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {p1}, Lcom/jcraft/jsch/ChannelSftp;->o()Ljava/lang/String;

    move-result-object p1

    const-string p2, "detectedEncoding"

    invoke-virtual {v3, p2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_5

    .line 30
    iget-object p1, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    const-string p2, "detectedEncoding"

    invoke-virtual {v3, p2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->i(Ljava/lang/String;)V

    :cond_5
    return-object v4

    .line 31
    :cond_6
    iget-object v5, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v5}, Lcom/jcraft/jsch/ChannelSftp;->b()V

    .line 32
    iget-object v5, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    invoke-virtual {v5}, Lcom/jcraft/jsch/Session;->a()V

    .line 33
    iput-object v0, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    .line 34
    iput-object v0, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_1

    goto/16 :goto_1

    :catch_1
    move-exception p1

    move-object v0, v4

    goto :goto_3

    :catchall_0
    move-exception p1

    move-object v0, v4

    goto :goto_2

    :catchall_1
    move-exception p1

    .line 35
    :goto_2
    :try_start_8
    monitor-exit v2
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    :try_start_9
    throw p1
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_2

    :catchall_2
    move-exception p1

    .line 36
    :try_start_a
    monitor-exit v1
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_2

    :try_start_b
    throw p1
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_2

    :catch_2
    move-exception p1

    :goto_3
    if-eqz v0, :cond_7

    .line 37
    iget-object p2, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    if-eqz p2, :cond_7

    .line 38
    invoke-virtual {p2}, Lcom/jcraft/jsch/Session;->a()V

    .line 39
    :cond_7
    instance-of p2, p1, Lcom/jcraft/jsch/JSchException;

    if-eqz p2, :cond_8

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p2

    if-eqz p2, :cond_8

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p2

    const-string p3, "username must not be null."

    invoke-virtual {p2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_8

    .line 40
    new-instance p1, Lcom/estrongs/android/exception/GeneralException;

    sget-object p2, Lcom/estrongs/android/exception/GeneralException$ERROR_CODE;->ERROR_AUTHORIZATION:Lcom/estrongs/android/exception/GeneralException$ERROR_CODE;

    invoke-direct {p1, p2}, Lcom/estrongs/android/exception/GeneralException;-><init>(Lcom/estrongs/android/exception/GeneralException$ERROR_CODE;)V

    throw p1

    .line 41
    :cond_8
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_5

    :goto_4
    throw p2

    :goto_5
    goto :goto_4
.end method

.method public static a()Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->g:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;

    invoke-direct {v0}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;-><init>()V

    sput-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->g:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;

    .line 3
    :cond_0
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->g:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;

    return-object v0
.end method

.method private a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 158
    :cond_0
    iget-object v0, p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v0}, Lcom/jcraft/jsch/ChannelSftp;->b()V

    .line 159
    iget-object p1, p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    invoke-virtual {p1}, Lcom/jcraft/jsch/Session;->a()V

    return-void
.end method

.method static synthetic a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    .locals 0

    .line 42
    invoke-static {p0, p1, p2, p3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    return-void
.end method

.method private a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;Ljava/lang/String;)Z
    .locals 18
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v0, p1

    move-object/from16 v1, p2

    const-string v2, "."

    .line 81
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v3

    .line 82
    :try_start_0
    iget-object v4, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v4, v1}, Lcom/jcraft/jsch/ChannelSftp;->b(Ljava/lang/String;)V

    .line 83
    iget-object v4, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v4, v2}, Lcom/jcraft/jsch/ChannelSftp;->c(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object v4
    :try_end_0
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_0 .. :try_end_0} :catch_1

    const-wide/16 v5, 0x1

    const-string v7, "sftp://"

    const/4 v8, 0x2

    const/4 v9, 0x0

    const/4 v10, 0x1

    if-eqz v4, :cond_7

    .line 84
    :try_start_1
    invoke-virtual {v4}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :cond_0
    :goto_0
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v12

    if-nez v12, :cond_1

    goto/16 :goto_2

    :cond_1
    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v12

    if-eqz v3, :cond_2

    .line 85
    invoke-virtual {v3}, Les/s80;->z()Z

    move-result v13

    if-eqz v13, :cond_2

    return v9

    .line 86
    :cond_2
    check-cast v12, Lcom/jcraft/jsch/ChannelSftp$LsEntry;

    .line 87
    invoke-virtual {v12}, Lcom/jcraft/jsch/ChannelSftp$LsEntry;->b()Ljava/lang/String;

    move-result-object v13

    .line 88
    invoke-virtual {v12}, Lcom/jcraft/jsch/ChannelSftp$LsEntry;->a()Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v12

    if-eqz v13, :cond_3

    .line 89
    invoke-virtual {v13, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-nez v14, :cond_0

    :cond_3
    const-string v14, ".."

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_4

    goto :goto_0

    .line 90
    :cond_4
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-static/range {p2 .. p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 91
    invoke-virtual {v12}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result v14

    if-eqz v14, :cond_5

    .line 92
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v13, "/"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12
    :try_end_1
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_1 .. :try_end_1} :catch_1

    move-object/from16 v14, p0

    .line 93
    :try_start_2
    invoke-direct {v14, v0, v12}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;Ljava/lang/String;)Z

    move-result v12

    goto :goto_1

    :cond_5
    move-object/from16 v14, p0

    .line 94
    iget-object v15, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v15, v13}, Lcom/jcraft/jsch/ChannelSftp;->g(Ljava/lang/String;)V

    if-eqz v3, :cond_6

    new-array v15, v8, [Ljava/lang/Object;

    .line 95
    invoke-virtual {v12}, Lcom/jcraft/jsch/SftpATTRS;->h()J

    move-result-wide v16

    invoke-static/range {v16 .. v17}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    aput-object v12, v15, v9

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    aput-object v12, v15, v10

    invoke-virtual {v3, v8, v15}, Les/s80;->b(I[Ljava/lang/Object;)V

    new-array v12, v8, [Ljava/lang/Object;

    .line 96
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v15

    aput-object v15, v12, v9

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    aput-object v13, v12, v10

    invoke-virtual {v3, v10, v12}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_6
    const/4 v12, 0x1

    :goto_1
    if-nez v12, :cond_0

    return v9

    :cond_7
    :goto_2
    move-object/from16 v14, p0

    if-eqz v4, :cond_8

    .line 97
    iget-object v0, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v0, v1}, Lcom/jcraft/jsch/ChannelSftp;->h(Ljava/lang/String;)V

    new-array v0, v8, [Ljava/lang/Object;

    .line 98
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    aput-object v2, v0, v9

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v0, v10

    invoke-virtual {v3, v10, v0}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_2
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_3

    :catch_0
    move-exception v0

    goto :goto_4

    :cond_8
    :goto_3
    return v10

    :catch_1
    move-exception v0

    move-object/from16 v14, p0

    .line 99
    :goto_4
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_6

    :goto_5
    throw v1

    :goto_6
    goto :goto_5
.end method

.method public static b()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    sput-boolean v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->e:Z

    return-void
.end method

.method private static b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    .locals 4

    .line 2
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-boolean v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->e:Z

    if-eqz v1, :cond_0

    .line 4
    monitor-exit v0

    return-void

    .line 5
    :cond_0
    sget-object v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "@"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "@"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/ArrayList;

    if-eqz v1, :cond_1

    .line 6
    monitor-enter v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 7
    :try_start_1
    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 8
    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw p0

    .line 9
    :cond_1
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 10
    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    sget-object p3, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    invoke-direct {v2, p0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string p0, "@"

    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "@"

    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {p3, p0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 12
    :goto_0
    monitor-exit v0

    return-void

    :catchall_1
    move-exception p0

    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    throw p0
.end method

.method private static l(Ljava/lang/String;)V
    .locals 0

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;J)Ljava/io/InputStream;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 112
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 113
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 114
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 115
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_0

    const-string v1, "22"

    :cond_0
    move-object v5, v1

    .line 116
    invoke-direct {p0, v3, v0, v4, v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v2

    const/4 v0, 0x0

    if-nez v2, :cond_1

    return-object v0

    .line 117
    :cond_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 118
    iget-object v1, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v1, p1, v0, p2, p3}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;Lcom/jcraft/jsch/SftpProgressMonitor;J)Ljava/io/InputStream;

    move-result-object v1

    .line 119
    new-instance p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$b;

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$b;-><init>(Ljava/io/InputStream;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 120
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p2
.end method

.method public a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 19
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v0, p2

    const-string v2, "."

    const-string v3, "/"

    .line 43
    new-instance v4, Ljava/util/LinkedList;

    invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V

    .line 44
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    if-eqz v5, :cond_0

    .line 45
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v6

    if-eqz v6, :cond_0

    return-object v4

    :cond_0
    const/4 v6, 0x0

    .line 46
    :try_start_0
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 47
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 48
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 49
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10
    :try_end_0
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v10, :cond_1

    :try_start_1
    const-string v10, "22"
    :try_end_1
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    goto/16 :goto_9

    :catch_0
    move-exception v0

    move-object v8, v6

    goto/16 :goto_8

    .line 50
    :cond_1
    :goto_0
    :try_start_2
    invoke-direct {v1, v7, v8, v9, v10}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v8
    :try_end_2
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_2 .. :try_end_2} :catch_4
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    if-nez v8, :cond_2

    return-object v6

    .line 51
    :cond_2
    :try_start_3
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 52
    iget-object v12, v8, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v12, v11}, Lcom/jcraft/jsch/ChannelSftp;->b(Ljava/lang/String;)V

    .line 53
    iget-object v12, v8, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v12, v2}, Lcom/jcraft/jsch/ChannelSftp;->c(Ljava/lang/String;)Ljava/util/Vector;

    move-result-object v12

    .line 54
    iget-object v13, v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a:Ljava/util/HashMap;

    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/estrongs/android/util/TypedMap;
    :try_end_3
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_3 .. :try_end_3} :catch_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    const-string v14, "UTF-8"

    if-eqz v13, :cond_3

    :try_start_4
    const-string v15, "encode"

    .line 55
    invoke-virtual {v13, v15, v14}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    goto :goto_1

    :cond_3
    move-object v15, v14

    .line 56
    :goto_1
    sget-object v16, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    const/16 v17, 0x0

    aget-object v6, v16, v17

    invoke-virtual {v6, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    iget-object v6, v8, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v6}, Lcom/jcraft/jsch/ChannelSftp;->o()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v14, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_4

    const-string v6, "detectedEncoding"

    .line 57
    iget-object v14, v8, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v14}, Lcom/jcraft/jsch/ChannelSftp;->o()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v6, v14}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    :cond_4
    if-eqz v12, :cond_f

    .line 58
    invoke-virtual {v12}, Ljava/util/Vector;->iterator()Ljava/util/Iterator;

    move-result-object v6

    move-object/from16 v12, p1

    :goto_2
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-nez v13, :cond_5

    goto/16 :goto_7

    :cond_5
    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    if-eqz v5, :cond_6

    .line 59
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v14

    if-eqz v14, :cond_6

    return-object v4

    :cond_6
    if-nez v13, :cond_7

    goto :goto_2

    .line 60
    :cond_7
    check-cast v13, Lcom/jcraft/jsch/ChannelSftp$LsEntry;

    .line 61
    invoke-virtual {v12, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v14

    if-nez v14, :cond_8

    .line 62
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v14, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 63
    :cond_8
    invoke-virtual {v13}, Lcom/jcraft/jsch/ChannelSftp$LsEntry;->b()Ljava/lang/String;

    move-result-object v14

    .line 64
    invoke-virtual {v14, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-nez v15, :cond_d

    const-string v15, ".."

    invoke-virtual {v14, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_9

    goto/16 :goto_5

    .line 65
    :cond_9
    invoke-virtual {v13}, Lcom/jcraft/jsch/ChannelSftp$LsEntry;->a()Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v13

    .line 66
    invoke-virtual {v13}, Lcom/jcraft/jsch/SftpATTRS;->k()Z

    move-result v15
    :try_end_4
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_4 .. :try_end_4} :catch_3
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    if-eqz v15, :cond_b

    .line 67
    :try_start_5
    invoke-virtual {v11, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v15

    if-eqz v15, :cond_a

    .line 68
    new-instance v15, Ljava/lang/StringBuilder;
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    move-object/from16 v16, v2

    :try_start_6
    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v15, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_3

    :cond_a
    move-object/from16 v16, v2

    .line 69
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v2, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 70
    :goto_3
    iget-object v15, v8, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v15, v2}, Lcom/jcraft/jsch/ChannelSftp;->j(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v13

    .line 71
    iget-object v15, v8, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v15, v2}, Lcom/jcraft/jsch/ChannelSftp;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    goto :goto_4

    :catch_1
    :cond_b
    move-object/from16 v16, v2

    :catch_2
    const/4 v2, 0x0

    .line 72
    :goto_4
    :try_start_7
    invoke-virtual {v13}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result v15

    if-eqz v15, :cond_c

    invoke-virtual {v14, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v15

    if-nez v15, :cond_c

    .line 73
    new-instance v15, Ljava/lang/StringBuilder;

    invoke-static {v14}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    invoke-direct {v15, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 74
    :cond_c
    new-instance v15, Lcom/estrongs/old/fs/impl/sftp/a;

    move-object/from16 v17, v3

    new-instance v3, Ljava/lang/StringBuilder;

    move-object/from16 v18, v5

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v15, v13, v3, v2}, Lcom/estrongs/old/fs/impl/sftp/a;-><init>(Lcom/jcraft/jsch/SftpATTRS;Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v0, :cond_e

    .line 75
    invoke-interface {v0, v15}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v2

    if-eqz v2, :cond_e

    .line 76
    invoke-interface {v4, v15}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_7
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_7 .. :try_end_7} :catch_3
    .catchall {:try_start_7 .. :try_end_7} :catchall_2

    goto :goto_6

    :cond_d
    :goto_5
    move-object/from16 v16, v2

    move-object/from16 v17, v3

    move-object/from16 v18, v5

    :cond_e
    :goto_6
    move-object/from16 v2, v16

    move-object/from16 v3, v17

    move-object/from16 v5, v18

    goto/16 :goto_2

    :cond_f
    :goto_7
    if-eqz v8, :cond_10

    .line 77
    invoke-static {v7, v9, v10, v8}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_10
    return-object v4

    :catch_3
    move-exception v0

    goto :goto_8

    :catchall_1
    move-exception v0

    const/4 v6, 0x0

    goto :goto_9

    :catch_4
    move-exception v0

    const/4 v8, 0x0

    .line 78
    :goto_8
    :try_start_8
    invoke-direct {v1, v8}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_2

    .line 79
    :try_start_9
    new-instance v2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v2, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v2
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_1

    :catchall_2
    move-exception v0

    move-object v6, v8

    .line 80
    :goto_9
    goto :goto_b

    :goto_a
    throw v0

    :goto_b
    goto :goto_a
.end method

.method public a(Lcom/estrongs/android/util/TypedMap;)V
    .locals 5

    .line 121
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a:Ljava/util/HashMap;

    const-string v1, "server"

    invoke-virtual {p1, v1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/util/TypedMap;

    if-eqz v0, :cond_0

    const-string v2, "detectedEncoding"

    .line 122
    invoke-virtual {v0, v2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 123
    invoke-virtual {v0, v2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v2, v0}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 124
    :cond_0
    invoke-virtual {p1, v1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 125
    iget-object v1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a:Ljava/util/HashMap;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->D(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v1, "privatekey"

    .line 126
    invoke-virtual {p1, v1}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "privatekey_passphrases"

    .line 127
    invoke-virtual {p1, v2}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz v1, :cond_6

    .line 128
    :try_start_0
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_1

    goto :goto_0

    .line 129
    :cond_1
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_5

    .line 130
    iget-object v2, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b:Ljava/util/HashMap;

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 131
    iget-object v3, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->c:Lcom/estrongs/android/util/TypedMap;

    const-string v4, ""

    invoke-virtual {v3, v0, v4}, Lcom/estrongs/android/util/TypedMap;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v2, :cond_2

    .line 132
    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    invoke-virtual {v3, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_7

    :cond_2
    if-eqz v2, :cond_3

    .line 133
    sget-object v3, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    invoke-virtual {v3, v2}, Lcom/jcraft/jsch/JSch;->b(Ljava/lang/String;)V

    .line 134
    :cond_3
    iget-object v2, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b:Ljava/util/HashMap;

    invoke-virtual {v2, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 135
    invoke-static {p1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 136
    sget-object p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    invoke-virtual {p1, v1}, Lcom/jcraft/jsch/JSch;->a(Ljava/lang/String;)V

    goto :goto_1

    .line 137
    :cond_4
    iget-object v2, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->c:Lcom/estrongs/android/util/TypedMap;

    invoke-virtual {v2, v0, p1}, Lcom/estrongs/android/util/TypedMap;->put(Ljava/lang/String;Ljava/lang/Object;)Lcom/estrongs/android/util/TypedMap;

    .line 138
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    invoke-virtual {v0, v1, p1}, Lcom/jcraft/jsch/JSch;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 139
    :cond_5
    iget-object p1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b:Ljava/util/HashMap;

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 140
    iget-object p1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->c:Lcom/estrongs/android/util/TypedMap;

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 141
    sget-object p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    invoke-virtual {p1, v1}, Lcom/jcraft/jsch/JSch;->b(Ljava/lang/String;)V

    goto :goto_1

    .line 142
    :cond_6
    :goto_0
    iget-object p1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->c:Lcom/estrongs/android/util/TypedMap;

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 143
    iget-object p1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b:Ljava/util/HashMap;

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    if-eqz p1, :cond_7

    .line 144
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_7

    .line 145
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d:Lcom/jcraft/jsch/JSch;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/JSch;->b(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 146
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_7
    :goto_1
    return-void
.end method

.method public a(Ljava/lang/String;Lcom/estrongs/fs/g;)V
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 147
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 148
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 149
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 150
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_0

    const-string v4, "22"

    .line 151
    :cond_0
    invoke-direct {p0, v1, v2, v3, v4}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    return-void

    .line 152
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 153
    iget-object v5, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-interface {p2}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v6

    const-wide/16 v8, 0x3e8

    div-long/2addr v6, v8

    long-to-int p2, v6

    invoke-virtual {v5, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v2, :cond_2

    .line 154
    invoke-static {v1, v3, v4, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_2
    return-void

    :catch_0
    move-exception p1

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_1
    move-exception p1

    move-object v2, v0

    .line 155
    :goto_0
    :try_start_2
    invoke-direct {p0, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 156
    :try_start_3
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p2
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_1
    move-exception p1

    move-object v0, v2

    .line 157
    :goto_1
    throw p1
.end method

.method public a(Ljava/lang/String;)Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 100
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 101
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 102
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 103
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_0

    const-string v4, "22"

    .line 104
    :cond_0
    invoke-direct {p0, v1, v2, v3, v4}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    const/4 p1, 0x0

    return p1

    .line 105
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 106
    iget-object v5, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v5, p1}, Lcom/jcraft/jsch/ChannelSftp;->d(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v2, :cond_2

    .line 107
    invoke-static {v1, v3, v4, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_2
    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p1

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_1
    move-exception p1

    move-object v2, v0

    .line 108
    :goto_0
    :try_start_2
    invoke-direct {p0, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 109
    :try_start_3
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_1
    move-exception p1

    move-object v0, v2

    .line 110
    :goto_1
    throw p1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 111
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->renameFile(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public b(Ljava/lang/String;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method public c(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_0

    const-string v1, "22"

    :cond_0
    move-object v5, v1

    .line 5
    invoke-direct {p0, v3, v0, v4, v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v2

    if-nez v2, :cond_1

    const/4 p1, 0x0

    return-object p1

    .line 6
    :cond_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 7
    iget-object v0, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v0, p1}, Lcom/jcraft/jsch/ChannelSftp;->e(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v1

    .line 8
    new-instance p1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;-><init>(Ljava/io/OutputStream;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 9
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public d(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 11
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-string v0, "22"

    const/4 v1, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2
    :try_end_0
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 2
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4
    :try_end_1
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 4
    :try_start_2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    if-nez v5, :cond_0

    goto :goto_0

    :cond_0
    move-object v0, v5

    .line 5
    :goto_0
    invoke-direct {p0, v2, v3, v4, v0}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v3
    :try_end_2
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-nez v3, :cond_1

    return-object v1

    .line 6
    :cond_1
    :try_start_3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 7
    iget-object v6, v3, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v6, v5}, Lcom/jcraft/jsch/ChannelSftp;->j(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v5

    .line 8
    new-instance v6, Lcom/estrongs/fs/e;

    invoke-direct {v6, p1}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 9
    invoke-virtual {v5}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result v7

    iput-boolean v7, v6, Lcom/estrongs/fs/e;->c:Z

    if-nez v7, :cond_2

    const-string v7, "File"

    .line 10
    iput-object v7, v6, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 11
    invoke-virtual {v5}, Lcom/jcraft/jsch/SftpATTRS;->h()J

    move-result-wide v7

    iput-wide v7, v6, Lcom/estrongs/fs/e;->d:J

    .line 12
    :cond_2
    invoke-virtual {v5}, Lcom/jcraft/jsch/SftpATTRS;->d()I

    move-result v7

    int-to-long v7, v7

    iput-wide v7, v6, Lcom/estrongs/fs/e;->i:J

    const-wide/16 v9, 0x3e8

    mul-long v7, v7, v9

    .line 13
    iput-wide v7, v6, Lcom/estrongs/fs/e;->i:J

    const-wide/16 v7, 0x0

    .line 14
    iput-wide v7, v6, Lcom/estrongs/fs/e;->g:J

    .line 15
    invoke-virtual {v5}, Lcom/jcraft/jsch/SftpATTRS;->f()I

    move-result v7

    and-int/lit16 v7, v7, 0x100

    const/4 v8, 0x0

    const/4 v9, 0x1

    if-eqz v7, :cond_3

    const/4 v7, 0x1

    goto :goto_1

    :cond_3
    const/4 v7, 0x0

    :goto_1
    iput-boolean v7, v6, Lcom/estrongs/fs/e;->j:Z

    .line 16
    invoke-virtual {v5}, Lcom/jcraft/jsch/SftpATTRS;->f()I

    move-result v7

    and-int/lit16 v7, v7, 0x80

    if-eqz v7, :cond_4

    const/4 v7, 0x1

    goto :goto_2

    :cond_4
    const/4 v7, 0x0

    :goto_2
    iput-boolean v7, v6, Lcom/estrongs/fs/e;->k:Z

    .line 17
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 18
    invoke-virtual {v5}, Lcom/jcraft/jsch/SftpATTRS;->g()Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_5

    .line 19
    invoke-virtual {v5, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v5

    :cond_5
    iput-object v5, v6, Lcom/estrongs/fs/e;->o:Ljava/lang/String;

    if-eqz p1, :cond_6

    const-string v5, "."

    .line 20
    invoke-virtual {p1, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_6

    goto :goto_3

    :cond_6
    const/4 v8, 0x1

    :goto_3
    iput-boolean v8, v6, Lcom/estrongs/fs/e;->l:Z
    :try_end_3
    .catch Lcom/jcraft/jsch/SftpException; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    if-eqz v3, :cond_7

    .line 21
    invoke-static {v2, v4, v0, v3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_7
    return-object v6

    :catch_0
    move-exception p1

    goto :goto_5

    :catch_1
    move-exception p1

    move-object v3, v1

    goto :goto_5

    :catch_2
    move-exception p1

    move-object v3, v1

    goto :goto_4

    :catchall_0
    move-exception p1

    goto :goto_6

    :catch_3
    move-exception p1

    move-object v2, v1

    move-object v3, v2

    :goto_4
    move-object v4, v3

    .line 22
    :goto_5
    :try_start_4
    iget v5, p1, Lcom/jcraft/jsch/SftpException;->id:I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    const/4 v6, 0x2

    if-ne v5, v6, :cond_9

    if-eqz v3, :cond_8

    .line 23
    invoke-static {v2, v4, v0, v3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_8
    return-object v1

    .line 24
    :cond_9
    :try_start_5
    invoke-direct {p0, v3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    .line 25
    :try_start_6
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    :catchall_1
    move-exception p1

    move-object v1, v3

    .line 26
    :goto_6
    throw p1
.end method

.method public destroy()V
    .locals 6

    .line 1
    sget-object v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    monitor-enter v0

    const/4 v1, 0x1

    .line 2
    :try_start_0
    sput-boolean v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->e:Z

    .line 3
    sget-object v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->size()I

    move-result v1

    if-nez v1, :cond_0

    .line 4
    monitor-exit v0

    return-void

    .line 5
    :cond_0
    sget-object v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .line 6
    :cond_1
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_2

    .line 7
    sget-object v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->clear()V

    .line 8
    monitor-exit v0

    return-void

    .line 9
    :cond_2
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map$Entry;

    .line 10
    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    if-eqz v2, :cond_1

    const/4 v3, 0x0

    .line 11
    :goto_1
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v3, v4, :cond_3

    goto :goto_0

    .line 12
    :cond_3
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    if-eqz v4, :cond_4

    .line 13
    iget-object v5, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    if-eqz v5, :cond_4

    iget-object v5, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    if-eqz v5, :cond_4

    .line 14
    iget-object v5, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v5}, Lcom/jcraft/jsch/ChannelSftp;->b()V

    .line 15
    iget-object v4, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    invoke-virtual {v4}, Lcom/jcraft/jsch/Session;->a()V

    :cond_4
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :catchall_0
    move-exception v1

    .line 16
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_3

    :goto_2
    throw v1

    :goto_3
    goto :goto_2
.end method

.method public e(Ljava/lang/String;)Z
    .locals 9
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-string v0, "/"

    const/4 v1, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    if-nez v5, :cond_0

    const-string v5, "22"

    .line 5
    :cond_0
    invoke-direct {p0, v2, v3, v4, v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v6, 0x0

    if-nez v3, :cond_1

    return v6

    .line 6
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 7
    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    const/4 v8, 0x1

    if-eqz p1, :cond_3

    .line 8
    invoke-virtual {v7, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 9
    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result p1

    sub-int/2addr p1, v8

    invoke-virtual {v7, v6, p1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    .line 10
    :cond_2
    iget-object p1, v3, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {p1, v7}, Lcom/jcraft/jsch/ChannelSftp;->d(Ljava/lang/String;)V

    goto :goto_0

    .line 11
    :cond_3
    iget-object p1, v3, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {p1, v7}, Lcom/jcraft/jsch/ChannelSftp;->e(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1

    .line 12
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :goto_0
    if-eqz v3, :cond_4

    .line 13
    invoke-static {v2, v4, v5, v3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_4
    return v8

    :catch_0
    move-exception p1

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_1
    move-exception p1

    move-object v3, v1

    .line 14
    :goto_1
    :try_start_2
    invoke-direct {p0, v3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 15
    :try_start_3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_1
    move-exception p1

    move-object v1, v3

    .line 16
    :goto_2
    throw p1
.end method

.method public exists(Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public bridge synthetic f(Ljava/lang/String;)Lcom/estrongs/fs/g;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->f(Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/a;

    move-result-object p1

    return-object p1
.end method

.method public f(Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/a;
    .locals 9

    const-string v0, "22"

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 2
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_3

    .line 3
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    .line 5
    :try_start_2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez v6, :cond_0

    goto :goto_0

    :cond_0
    move-object v0, v6

    .line 6
    :goto_0
    invoke-direct {p0, v3, v4, v5, v0}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v4
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    if-nez v4, :cond_1

    return-object v1

    .line 7
    :cond_1
    :try_start_3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 8
    iget-object v7, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v7, v6}, Lcom/jcraft/jsch/ChannelSftp;->j(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v7

    if-nez v7, :cond_2

    return-object v1

    .line 9
    :cond_2
    invoke-virtual {v7}, Lcom/jcraft/jsch/SftpATTRS;->k()Z

    move-result v8
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_5
    .catchall {:try_start_3 .. :try_end_3} :catchall_4

    if-eqz v8, :cond_3

    .line 10
    :try_start_4
    iget-object v8, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v8, v6}, Lcom/jcraft/jsch/ChannelSftp;->j(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v7

    .line 11
    iget-object v8, v4, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v8, v6}, Lcom/jcraft/jsch/ChannelSftp;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
    .catchall {:try_start_4 .. :try_end_4} :catchall_4

    goto :goto_1

    :catch_0
    :cond_3
    move-object v2, v1

    :goto_1
    const/4 v6, 0x1

    .line 12
    :try_start_5
    new-instance v8, Lcom/estrongs/old/fs/impl/sftp/a;

    invoke-direct {v8, v7, p1, v2}, Lcom/estrongs/old/fs/impl/sftp/a;-><init>(Lcom/jcraft/jsch/SftpATTRS;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-eqz v4, :cond_4

    .line 13
    invoke-static {v3, v5, v0, v4}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_4
    return-object v8

    :catchall_0
    move-exception p1

    move-object v1, v4

    const/4 v2, 0x1

    goto :goto_4

    :catch_1
    const/4 v2, 0x1

    goto :goto_3

    :catchall_1
    move-exception p1

    goto :goto_4

    :catch_2
    move-object v4, v1

    goto :goto_3

    :catchall_2
    move-exception p1

    move-object v5, v1

    goto :goto_4

    :catch_3
    move-object v4, v1

    goto :goto_2

    :catchall_3
    move-exception p1

    move-object v3, v1

    move-object v5, v3

    goto :goto_4

    :catch_4
    move-object v3, v1

    move-object v4, v3

    :goto_2
    move-object v5, v4

    .line 14
    :catch_5
    :goto_3
    :try_start_6
    invoke-direct {p0, v4}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_4

    return-object v1

    :catchall_4
    move-exception p1

    move-object v1, v4

    :goto_4
    if-eqz v1, :cond_5

    if-eqz v2, :cond_5

    .line 15
    invoke-static {v3, v5, v0, v1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    .line 16
    :cond_5
    throw p1
.end method

.method public g(Ljava/lang/String;)Z
    .locals 16
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v0, "sftp://"

    .line 1
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v2

    const/4 v3, 0x0

    .line 2
    :try_start_0
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 3
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 4
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 5
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    if-nez v7, :cond_0

    const-string v7, "22"

    .line 6
    :cond_0
    invoke-direct {v1, v4, v5, v6, v7}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v5
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v8, 0x0

    if-nez v5, :cond_1

    return v8

    :cond_1
    if-eqz v2, :cond_2

    .line 7
    :try_start_1
    invoke-virtual {v2}, Les/s80;->z()Z

    move-result v9

    if-eqz v9, :cond_2

    return v8

    .line 8
    :cond_2
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 9
    iget-object v10, v5, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v10, v9}, Lcom/jcraft/jsch/ChannelSftp;->j(Ljava/lang/String;)Lcom/jcraft/jsch/SftpATTRS;

    move-result-object v10

    .line 10
    invoke-virtual {v10}, Lcom/jcraft/jsch/SftpATTRS;->j()Z

    move-result v11

    const/4 v12, 0x1

    if-nez v11, :cond_4

    if-eqz v2, :cond_3

    const/4 v11, 0x2

    new-array v13, v11, [Ljava/lang/Object;

    const-wide/16 v14, 0x1

    .line 11
    invoke-static {v14, v15}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v14

    aput-object v14, v13, v8

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v14, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    aput-object v14, v13, v12

    invoke-virtual {v2, v12, v13}, Les/s80;->b(I[Ljava/lang/Object;)V

    new-array v13, v11, [Ljava/lang/Object;

    .line 12
    invoke-virtual {v10}, Lcom/jcraft/jsch/SftpATTRS;->h()J

    move-result-wide v14

    invoke-static {v14, v15}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v10

    aput-object v10, v13, v8

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v13, v12

    invoke-virtual {v2, v11, v13}, Les/s80;->b(I[Ljava/lang/Object;)V

    .line 13
    :cond_3
    iget-object v0, v5, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v0, v9}, Lcom/jcraft/jsch/ChannelSftp;->g(Ljava/lang/String;)V

    goto :goto_0

    .line 14
    :cond_4
    invoke-direct {v1, v5, v9}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;Ljava/lang/String;)Z

    move-result v12

    .line 15
    :goto_0
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->l(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v5, :cond_5

    .line 16
    invoke-static {v4, v6, v7, v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_5
    return v12

    :catch_0
    move-exception v0

    goto :goto_1

    :catchall_0
    move-exception v0

    goto :goto_2

    :catch_1
    move-exception v0

    move-object v5, v3

    .line 17
    :goto_1
    :try_start_2
    invoke-direct {v1, v5}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 18
    :try_start_3
    new-instance v2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v2, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v2
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_1
    move-exception v0

    move-object v3, v5

    .line 19
    :goto_2
    throw v0
.end method

.method public h(Ljava/lang/String;)J
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object p1

    if-nez p1, :cond_0

    const-wide/16 v0, -0x1

    return-wide v0

    .line 2
    :cond_0
    iget-wide v0, p1, Lcom/estrongs/fs/e;->d:J

    return-wide v0
.end method

.method public i(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0, v1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;J)Ljava/io/InputStream;

    move-result-object p1

    return-object p1
.end method

.method public j(Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object p1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return p1

    .line 2
    :cond_0
    iget-boolean p1, p1, Lcom/estrongs/fs/e;->c:Z

    return p1
.end method

.method public k(Ljava/lang/String;)Ljava/lang/String;
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_0

    const-string p1, "22"

    .line 5
    :cond_0
    invoke-direct {p0, v1, v2, v3, p1}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    return-object v0

    .line 6
    :cond_1
    :try_start_1
    iget-object v4, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v4}, Lcom/jcraft/jsch/ChannelSftp;->p()Ljava/lang/String;

    move-result-object v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v2, :cond_2

    .line 7
    invoke-static {v1, v3, p1, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_2
    return-object v0

    :catch_0
    move-exception p1

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_1
    move-exception p1

    move-object v2, v0

    .line 8
    :goto_0
    :try_start_2
    invoke-direct {p0, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 9
    :try_start_3
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 10
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_1
    move-exception p1

    move-object v0, v2

    .line 11
    :goto_1
    throw p1
.end method

.method public renameFile(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_0

    const-string v4, "22"

    .line 5
    :cond_0
    invoke-direct {p0, v1, v2, v3, v4}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_1

    const/4 p1, 0x0

    return p1

    .line 6
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 7
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->F(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 8
    iget-object v5, v2, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v5, p1, p2}, Lcom/jcraft/jsch/ChannelSftp;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v2, :cond_2

    .line 9
    invoke-static {v1, v3, v4, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    :cond_2
    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p1

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_1
    move-exception p1

    move-object v2, v0

    .line 10
    :goto_0
    :try_start_2
    invoke-direct {p0, v2}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 11
    :try_start_3
    new-instance p2, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p2, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p2
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_1
    move-exception p1

    move-object v0, v2

    .line 12
    :goto_1
    throw p1
.end method
